<extend name="Public/base"/>

<block name="body">
    <div class="cf">
        <h2>{$meta_title}</h2>
    </div>
    <form id="form" width="79%" action="{:U('update')}" method="post" class="form-horizontal fl">
        <div class="cf">
            <label>填写应用的场景</label>
            <input type="text" name="scene" placeholder="应用场景" value="{$data.scene}" />
            <label>填写开始时间(选填)</label>
            <input type="text" name="startTime" placeholder="开始时间，不填马上有效" value="{$data.startTime}" />
            <label>选择回复的类型</label>
            <select name="reply_type" id="">
                <option value="text" <eq name="data['reply_type']" value="text"> selected="selected"</eq> >文本</option>
                <option value="news" <eq name="data['reply_type']" value="news"> selected="selected"</eq>>新闻</option>
                <option value="document" <eq name="data['reply_type']" value="document"> selected="selected"</eq>>文章</option>
                <option value="category" <eq name="data['reply_type']" value="category"> selected="selected"</eq>>分类</option>
            </select>
            <label>回复内容</label>
            <textarea name="reply_id" id="reply_id" cols="30" rows="10">{$data.reply_id}</textarea>
            <label>填写过期时间(选填)</label>
            <input type="text" name="deadLine" placeholder="过期时间，不填不过期" value="{$data.deadline}" />
            <label>过期后回复内容(选填)</label>
            <textarea name="deadText" id="deadText" cols="30" rows="10">{$data.deadText}</textarea>
        </div>
        <div class="form-item cf">
            <button class="btn submit-btn ajax-post hidden" id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <a class="btn btn-return" href="">返 回</a>
            <input type="hidden" name="qrid" value="{$data.id}"/>
        </div>
    </form>

    <div class="cf">
        <div id="qrImage"><img src="{:get_qr_code($data['ticket'])}" alt=""/></div>
    </div>

</block>

